Text File | 1995-09-06 | 953 b | 22 lines | [TEXT/ttxt]
Q: I am precompiling my header files and am getting the following build error:
File "TextUtils.h"; Line 311; While compiling "Mac #includes.c" Error: 'stringtonum' previously declared as something else
It was declared as: void C func(char const *, long *)
It is now declared as: void C func(char *, long *)
A: Go into the header file BDC.h in the 2.0a4 Universal Headers folder that you copied from the Symantec C++ for Power Macintosh CD-ROM and change the following code:
#ifdef CGLUESUPPORTED // defined in 2.0a4 or later
void stringtonum(const char *theString, long *theNum);
#else
void stringtonum(const char *theString, long *theNum );
#endif
to:
#ifdef CGLUESUPPORTED // defined in 2.0a4 or later
void stringtonum(const char *theString, long *theNum);
#else
void stringtonum(char *theString, long *theNum );
#endif
This is only a problem with the newer version of BDC.h that comes with universal headers 2.0a4